Justin Burkett [Thu, 15 Dec 2016 14:58:32 +0000 (09:58 -0500)]
Remove unused variable
Justin Burkett [Thu, 15 Dec 2016 14:42:08 +0000 (09:42 -0500)]
Fix #156 by allowing multiple replacements
Add which-key-allow-multiple-replacements which can be set to allow multiple
replacements from which-key-replacement-alist to apply to a key binding.
Switch from using assoc-default to find replacements to
which-key--get-replacements.
Adjusts tests and add a new one for multiple replacements.
Justin Burkett [Mon, 12 Dec 2016 14:04:44 +0000 (09:04 -0500)]
Tweak TOC in README and fix a link
Justin Burkett [Wed, 7 Dec 2016 15:14:08 +0000 (10:14 -0500)]
Add a missing type declaration
Justin Burkett [Mon, 5 Dec 2016 19:09:36 +0000 (14:09 -0500)]
Prevent display from occurring twice in a row
Found some cases where this could happen with a secondary idle delay.
Justin Burkett [Mon, 5 Dec 2016 18:55:25 +0000 (13:55 -0500)]
Add basic timing facility for debugging.
Justin Burkett [Thu, 1 Dec 2016 12:42:32 +0000 (07:42 -0500)]
Remove old obsolete variables/functions
Justin Burkett [Thu, 1 Dec 2016 12:39:19 +0000 (07:39 -0500)]
Add some docstrings
Justin Burkett [Thu, 1 Dec 2016 12:39:03 +0000 (07:39 -0500)]
Remove some unused functions
Justin Burkett [Thu, 1 Dec 2016 00:09:20 +0000 (19:09 -0500)]
Fixup last commit part 2
Justin Burkett [Thu, 1 Dec 2016 00:03:56 +0000 (19:03 -0500)]
Fixup last commit
Justin Burkett [Wed, 30 Nov 2016 23:52:52 +0000 (18:52 -0500)]
Support functions in -add-key-based-replacements
Justin Burkett [Wed, 30 Nov 2016 13:58:53 +0000 (08:58 -0500)]
Fix links to users in README
Justin Burkett [Wed, 30 Nov 2016 13:56:05 +0000 (08:56 -0500)]
Add @pdcawley's example to README
Justin Burkett [Wed, 30 Nov 2016 13:39:52 +0000 (08:39 -0500)]
Add test for #155
Justin Burkett [Wed, 30 Nov 2016 12:03:52 +0000 (07:03 -0500)]
Fix bug in last commit
The regexp-quote docstring is misleading since (regexp-quote "SPC x") will match
"SPC x c". Added back the beginning and end markers in the regexp.
Justin Burkett [Wed, 30 Nov 2016 02:29:32 +0000 (21:29 -0500)]
Quote regexp in -add-key-based-replacements
Should fix #154
Justin Burkett [Tue, 29 Nov 2016 18:20:00 +0000 (13:20 -0500)]
Fix a README link
Justin Burkett [Tue, 29 Nov 2016 13:38:21 +0000 (08:38 -0500)]
Normalize key sequences from -add-key-based-replacements
Justin Burkett [Mon, 28 Nov 2016 15:10:18 +0000 (10:10 -0500)]
Simplify --format-and-replace
Justin Burkett [Fri, 25 Nov 2016 14:00:25 +0000 (09:00 -0500)]
Fix use of function in -replacement-alist
Wasn't actually deleting nil results
Justin Burkett [Fri, 25 Nov 2016 12:56:06 +0000 (07:56 -0500)]
Don't use case-fold-search in --maybe-replace
See https://github.com/syl20bnr/spacemacs/issues/7837#issuecomment-
262938480
Justin Burkett [Tue, 22 Nov 2016 12:01:09 +0000 (07:01 -0500)]
Update test
Justin Burkett [Tue, 22 Nov 2016 04:03:12 +0000 (23:03 -0500)]
Consolidate replacements into one alist
New list is which-key-replacement-alist. See docstring.
The following lists are deprecated. Some basic backwards compatibility is
attempted, but more complicated configs will likely break.
which-key-key-replacement-alist
which-key-key-based-description-replacement-alist
which-key-description-replacement-alist
which-key-binding-filter-function was removed, since it's functionality is
mostly replaced by which-key-replacement-alist
Updated README
Justin Burkett [Sun, 6 Nov 2016 17:50:55 +0000 (12:50 -0500)]
Move sort after filter op in --get-formatted-key-bindings
Justin Burkett [Mon, 31 Oct 2016 17:56:57 +0000 (13:56 -0400)]
Update comment in --show-buffer-side-window for prior change
Justin Burkett [Mon, 31 Oct 2016 17:48:14 +0000 (13:48 -0400)]
Remove use of display-buffer-in-major-side-window
According to emacs bug #24828, this is an internal function and should
not be used. Following the advice from that report, switch to
display-buffer-in-side-window and add an option for the user to specify
the slot value for that function.
Fixes #146
Justin Burkett [Sat, 29 Oct 2016 13:15:03 +0000 (09:15 -0400)]
Add which-key-binding-filter-function
Can be used to arbitrarily manipulate key bindings, including deleting
them, before they are processed by which-key. See docstring for usage.
Fixes #152
https://github.com/syl20bnr/spacemacs/issues/7582
Justin Burkett [Sat, 29 Oct 2016 12:34:42 +0000 (08:34 -0400)]
Add sort option -prefix-then-key-order-reverse
Fixes #145
Justin Burkett [Sat, 29 Oct 2016 12:33:55 +0000 (08:33 -0400)]
Add global option for how to sort case
which-key-sort-uppercase-first (default t)
See #145
Justin Burkett [Tue, 18 Oct 2016 01:35:49 +0000 (21:35 -0400)]
Merge pull request #149 from rdotdk/patch-1
fix link
Hariharan R [Sun, 16 Oct 2016 06:18:23 +0000 (02:18 -0400)]
fix link
Justin Burkett [Wed, 5 Oct 2016 20:32:29 +0000 (16:32 -0400)]
Fix test for recent prefix-name change
Justin Burkett [Wed, 5 Oct 2016 18:54:49 +0000 (14:54 -0400)]
Make
458c8d9 backwards compatible
The prefix titles need to be in cons cells to stay consistent with how
they were used before.
Justin Burkett [Wed, 5 Oct 2016 18:42:10 +0000 (14:42 -0400)]
Move a function for the compiler
Justin Burkett [Wed, 5 Oct 2016 18:24:11 +0000 (14:24 -0400)]
Consolidate prefix names and key-based replacements
Make obsolete several redundant functions, the most important of which
is which-key-declare-prefixes. This is just an alias for
which-key-add-key-based-replacements now. The additional functionality
that declare-prefixes had (for declaring prefix titles) is now rolled
into the add-key-based-replacements function. See that functions doc
string.
Justin Burkett [Tue, 4 Oct 2016 20:48:40 +0000 (16:48 -0400)]
Fix -maybe-get-prefix-title use of key-binding
key-binding doesn't work with all forms of key strings.
See #143
justbur [Sun, 11 Sep 2016 19:58:53 +0000 (15:58 -0400)]
Resize popup when frame resized
Fixes #139
Justin Burkett [Wed, 31 Aug 2016 23:55:26 +0000 (19:55 -0400)]
Merge pull request #137 from tarsius/outlines
Follow conventions for section headers
Justin Burkett [Wed, 31 Aug 2016 23:55:03 +0000 (19:55 -0400)]
Merge pull request #136 from tarsius/fixup
Move definition of which-key--local-binding-p
Jonas Bernoulli [Wed, 31 Aug 2016 23:26:10 +0000 (01:26 +0200)]
Follow conventions for section headers
Doing so allows the use of `outline-minor-mode' makes it possible
to navigate sections similarly to how that is done in `org-mode'.
Jonas Bernoulli [Wed, 31 Aug 2016 12:41:41 +0000 (14:41 +0200)]
Move definition of which-key--local-binding-p
It has to be defined after the inline functions which it uses.
Justin Burkett [Wed, 17 Aug 2016 15:17:45 +0000 (11:17 -0400)]
Version 1.1.15
Justin Burkett [Wed, 17 Aug 2016 15:17:16 +0000 (11:17 -0400)]
Add note about setting delay to zero
Justin Burkett [Wed, 17 Aug 2016 15:11:56 +0000 (11:11 -0400)]
Fix minibuffer echo not displaying
See #133
justbur [Thu, 28 Jul 2016 13:20:20 +0000 (09:20 -0400)]
Version 1.1.14
Tagged wrong commit
justbur [Thu, 28 Jul 2016 13:17:19 +0000 (09:17 -0400)]
Disable hack for echo area
Seems to cause more problems (like completion commands sometimes being
overwritten) than it solves.
justbur [Wed, 27 Jul 2016 13:22:38 +0000 (09:22 -0400)]
Fix Makefile
justbur [Sat, 9 Jul 2016 19:25:50 +0000 (15:25 -0400)]
Add allow-imprecise-window-fit option
Possible fix for #130
When enabled this option avoids the use of fit-window-to-buffer to
resize the popup. My profiling suggested that emacs was spending a lot
of time in this function (and hanging sometimes) with different fonts. I
noticed this with Roboto Mono on MSWindows, which should explain #130.
justbur [Wed, 6 Jul 2016 19:16:40 +0000 (15:16 -0400)]
Explicitly set tab-width when collecting bindings
For some reason indent-tabs-mode doesn't use tabs with strange
tab-widths.
See https://github.com/syl20bnr/spacemacs/issues/6497
justbur [Tue, 5 Jul 2016 13:05:47 +0000 (09:05 -0400)]
Fix previous commit
justbur [Tue, 5 Jul 2016 12:58:40 +0000 (08:58 -0400)]
Add whitelist and blacklist options
which-key-allow-regexps is a list of regexps that allow the popup when
one is matched
which-key-inhibit-regexps inhibits the popup when one regexp matches
The string matched against is the current key sequence as produced by
key-description.
Fixes #129
justbur [Fri, 17 Jun 2016 12:42:18 +0000 (08:42 -0400)]
Remove setup code
It's no longer necessary and makes changing echo-keystrokes annoying.
justbur [Thu, 16 Jun 2016 15:01:53 +0000 (11:01 -0400)]
Make current-prefix nil when not showing popup
justbur [Thu, 16 Jun 2016 14:03:51 +0000 (10:03 -0400)]
Use sit-for instead of timer for delay functions
justbur [Wed, 15 Jun 2016 01:45:10 +0000 (21:45 -0400)]
Fix arg to which-key-delay-functions
justbur [Wed, 15 Jun 2016 01:42:34 +0000 (21:42 -0400)]
Redesign delayed keys implementation
Everything is controlled through which-key-delay-functions now.
Ref #128
justbur [Fri, 10 Jun 2016 02:39:47 +0000 (22:39 -0400)]
Fix bug in previous commit
justbur [Fri, 10 Jun 2016 02:37:11 +0000 (22:37 -0400)]
Introduce delayed prefixes
One version of idea in #128. This design is subject to change.
justbur [Fri, 27 May 2016 13:35:27 +0000 (09:35 -0400)]
Bump version
justbur [Fri, 27 May 2016 13:31:35 +0000 (09:31 -0400)]
Fix performance issue with secondary timer
The secondary timer option was restarting the timer every time through
the update function, which caused the cpu to max out. Adds a flag so
that the timer is only restarted when necessary.
Fixes #126
justbur [Thu, 26 May 2016 15:19:02 +0000 (11:19 -0400)]
Bump version
justbur [Thu, 26 May 2016 15:16:43 +0000 (11:16 -0400)]
Fix --echo when echo-keystrokes nil
justbur [Wed, 25 May 2016 01:37:52 +0000 (21:37 -0400)]
Remove some unused code in comments
justbur [Tue, 24 May 2016 16:44:50 +0000 (12:44 -0400)]
Change name of arg in define-key-recursively
Also clarify docstring
justbur [Tue, 17 May 2016 01:25:05 +0000 (21:25 -0400)]
New screenshots
justbur [Tue, 17 May 2016 01:18:59 +0000 (21:18 -0400)]
More cleanup of README
justbur [Tue, 17 May 2016 01:15:28 +0000 (21:15 -0400)]
README typo
justbur [Tue, 17 May 2016 01:08:18 +0000 (21:08 -0400)]
Fix comment about special keys in README
justbur [Tue, 17 May 2016 01:06:23 +0000 (21:06 -0400)]
Update docs for new sort function
justbur [Mon, 16 May 2016 19:35:33 +0000 (15:35 -0400)]
Add which-key-local-then-key-order
To use (setq which-key-sort-order 'which-key-local-then-key-order)
See #125
justbur [Fri, 13 May 2016 13:05:03 +0000 (09:05 -0400)]
Bump version
justbur [Thu, 12 May 2016 12:39:38 +0000 (08:39 -0400)]
Account for echo-keystrokes = which-key-idle-delay
Ref #123
justbur [Sat, 7 May 2016 12:07:55 +0000 (08:07 -0400)]
Bump version
Justin Burkett [Sat, 7 May 2016 12:03:05 +0000 (08:03 -0400)]
Merge pull request #122 from redguardtoo/master
tooltip-mode does in exist in emacs-nox #120
Chen Bin [Sat, 7 May 2016 04:19:23 +0000 (14:19 +1000)]
tooltip-mode does in exist in emacs-nox #120
justbur [Thu, 5 May 2016 14:31:45 +0000 (10:31 -0400)]
Bump version
justbur [Thu, 5 May 2016 14:30:44 +0000 (10:30 -0400)]
Backport two frame width functions for 24.3 support
Fixes #119
Justin Burkett [Wed, 27 Apr 2016 19:04:01 +0000 (15:04 -0400)]
Merge pull request #116 from cute-jumper/master
Fix god mode advice
Junpeng Qiu [Wed, 27 Apr 2016 18:45:41 +0000 (14:45 -0400)]
Fix god mode advice
See https://github.com/justbur/emacs-which-key/pull/115
justbur [Tue, 26 Apr 2016 18:27:58 +0000 (14:27 -0400)]
Merge branch 'god-mode'
justbur [Tue, 26 Apr 2016 18:26:25 +0000 (14:26 -0400)]
Add advice for god-mode support to hide popup
The standard way to hide the popup before the command is not working.
justbur [Tue, 26 Apr 2016 18:16:08 +0000 (14:16 -0400)]
Fix minor issues with god-mode support
Make sure advice is activated for god-mode-lookup-command
Check for null which-key--god-mode-key-string
justbur [Tue, 26 Apr 2016 15:08:32 +0000 (11:08 -0400)]
Better default for which-key-echo-keystrokes
Fixes #114
justbur [Tue, 26 Apr 2016 13:18:48 +0000 (09:18 -0400)]
Add third-party section to which-key.el
justbur [Tue, 26 Apr 2016 13:18:20 +0000 (09:18 -0400)]
Add third-party support section to readme
justbur [Tue, 26 Apr 2016 13:07:12 +0000 (09:07 -0400)]
Add support for god-mode
Needs to be explicitly activated by calling
(which-key-enable-god-mode-support)
justbur [Tue, 19 Apr 2016 12:15:23 +0000 (08:15 -0400)]
Bump version
justbur [Tue, 19 Apr 2016 12:14:34 +0000 (08:14 -0400)]
Use new history var for keymap selection
justbur [Sun, 17 Apr 2016 20:58:15 +0000 (16:58 -0400)]
Bump version
justbur [Sun, 17 Apr 2016 20:57:26 +0000 (16:57 -0400)]
Explicitly initialize variable-name-history
See #110
justbur [Sun, 17 Apr 2016 20:37:26 +0000 (16:37 -0400)]
Bump version
justbur [Sun, 17 Apr 2016 20:34:45 +0000 (16:34 -0400)]
Declare variable-name-history
Fixes #110
justbur [Sun, 10 Apr 2016 19:07:15 +0000 (15:07 -0400)]
Bump version
justbur [Sun, 10 Apr 2016 19:05:02 +0000 (15:05 -0400)]
Support key ranges below top level
justbur [Wed, 6 Apr 2016 17:53:58 +0000 (13:53 -0400)]
Add badge
justbur [Tue, 5 Apr 2016 14:12:04 +0000 (10:12 -0400)]
Trigger travis
justbur [Tue, 5 Apr 2016 14:09:59 +0000 (10:09 -0400)]
Set up travis
justbur [Tue, 5 Apr 2016 14:06:45 +0000 (10:06 -0400)]
Bump version
justbur [Tue, 5 Apr 2016 14:05:38 +0000 (10:05 -0400)]
Fix problem where prefix-title-alist was not updated